import request from '@/utils/request'
export function getMessageList({ page }) {
  return request({
    url: '/api/back/offline/setting',
    method: 'get',
    params: { type: 'message', page, per_page: 10 }
  })
}
// 系统消息-------撤回消息
export function withDrawMessage(id) {
  return request({
    url: '/api/back/offline/setting',
    method: 'post',
    data: { id },
    params: { type: 'delete' }
  })
}
// 系统消息-------发送消息
export function sendMessage({ status, title, center }) {
  return request({
    url: '/api/back/offline/setting',
    method: 'post',
    data: { status, title, center },
    params: { type: 'message' }
  })
}
